<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let geo = ['28.2345','115.678']
        // 字符串
        let geo = {
            lat : '28.682',
            log :'115.85'
        }
        localStorage.setItem('geo',JSON.stringify(geo))
        // localStorage.setItem('geo',geo)
        console.log(typeof localStorage.getItem('geo'))
        console.log(JSON.parse(localStorage.getItem('geo')))
      localStorage.setItem('ls_name','gch'); //一直在
      sessionStorage.setItem('ss_name','lwb') // 会话在 关闭了浏览器
    </script>
   
</body>
</html>